package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.MessageFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author cjr
 */
@Component
public class MessageFallback implements MessageFeign {
    @Override
    public ResultModel savePush(MessageSavePushRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel push(MessagePushRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel wxService(MessageWxServiceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel wxSubscribe(MessageWxSubscribeDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel wxFormid(MessageWxFormidRequest request) {
        return ResultModel.faultTolerant();
    }
}
